package com.ostrich.cloud.ostrichDistributionService.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.cloud.dto.DistributionDto;

import com.ostrich.cloud.ostrichDistributionService.infra.model.DeliveryOrder;
import com.ostrich.cloud.param.DeliveryOrderparam;


import java.util.Date;

/**
 * <p>
 * 配送订单表 服务类
 * </p>
 *
 * @author Tom
 * @since 2022-10-29
 */
public interface DeliveryOrderService extends IService<DeliveryOrder> {
    public boolean storeAdd(DeliveryOrder deliveryOrder);
    public Integer orderAdd(DeliveryOrder deliveryOrder);
    public DistributionDto getDeliveryPage(Integer did, long currentPage, long size);
    public boolean finishedDelivery(Integer did, Date finishedTime);
    public DeliveryOrderparam getOne(Integer did);
}
